package com.sdhs.archivesmanage.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdhs.businessfile.domain.BusinessFile;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sdhs.common.annotation.Excel;
import lombok.Data;
import com.sdhs.common.core.domain.BaseEntity;

/**
 * 档案管理对象 gc_file_management
 *
 * @author andong
 * @date 2025-04-10
 */
@Data
public class GcFileManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 档案管理主键 */
    private Long id;

    /** 关联项目id */
    @Excel(name = "关联项目id")
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 项目编号*/
    @Excel(name = "项目编号")
    private String projectNumber;

    /** 档案类型 */
    @Excel(name = "档案类型")
    private String archiveType;
    /** 档案名称 */
    @Excel(name = "档案名称")
    private String archiveName;

    /** 题名 */
    @Excel(name = "题名")
    private String titleName;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creater;

    /** 创建人 */
    @Excel(name = "数量")
    private String archivesQuantity;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updater;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDelete;

    /**
     * 附件
     */
    private List<BusinessFile> fileList;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("archiveType", getArchiveType())
            .append("titleName", getTitleName())
            .append("submitTime", getSubmitTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("creater", getCreater())
            .append("updater", getUpdater())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
